import request from "@/utils/request";

// 查询【请填写功能名称】列表
export function listContract(query) {
  return request({
    url: "/customer/contract/list",
    method: "get",
    params: query,
  });
}

// 查询【请填写功能名称】详细
export function getContract(orderNumber) {
  return request({
    url: "/customer/contract/" + orderNumber,
    method: "get",
  });
}

// 新增【请填写功能名称】
export function addContract(data) {
  return request({
    url: "/customer/contract",
    method: "post",
    data: data,
  });
}

// 删除啊
export function delContract(orderNumber) {
  return request({
    url: "/customer/contract/" + orderNumber,
    method: "delete",
  });
}

// 修改啊
export function updateContract(data) {
  return request({
    url: "/customer/contract",
    method: "put",
    data: data,
  });
}
